package org.xsk.network.tcp.thread;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * description: 服务器
 * <p>
 * date: 2021/6/10 13:03
 * author: x-one
 */
public class LoginServer {
    public static void main(String[] args) throws IOException {
        try (ServerSocket serverSocket = new ServerSocket(8000)) {
            while(true) {
                Socket socket = serverSocket.accept();
                MyThread thread =new MyThread(socket);
                thread.start();
            }
        }
    }
}
